Platform Explorer / Nuxeo Platform 2021.49

Component org.nuxeo.ecm.user.center.action.widgets

Documentation

@since 6.0, global widgets used to render actions/tabs in Home.

Resolution Order

904
The resolution order represents the order in which this component has been resolved by the Nuxeo Runtime framework.
You can influence this order by adding "require" tags in your component declaration, to make sure it is resolved after another component.

Contributions

XML Source

<component name="org.nuxeo.ecm.user.center.action.widgets">

  <documentation>
    @since 6.0, global widgets used to render actions/tabs
    in Home.
  </documentation>

  <extension target="org.nuxeo.ecm.platform.forms.layout.WebLayoutManager"
    point="widgets">

    <widget name="homeTabs" type="tabs">
      <properties mode="view">
        <property name="actionsDisplay">links</property>
        <property name="addForm">true</property>
        <property name="useAjaxForm">#{useAjaxTabs}</property>
        <property name="category">USER_CENTER</property>
        <property name="actions">#{userCenterViews.availableActions}</property>
        <property name="currentTabAction">#{userCenterViews.currentView}</property>
        <property name="overallDisplay">vertical_block</property>
      </properties>
    </widget>

    <widget name="userCenterSubTabs" type="tabs">
      <properties mode="view">
        <property name="actionsDisplay">links</property>
        <property name="addForm">true</property>
        <property name="useAjaxForm">#{useAjaxTabs}</property>
        <property name="actions">
          #{userCenterViews.availableSubActions}
        </property>
        <property name="currentTabAction">#{userCenterViews.currentSubView}</property>
        <property name="hideSingleTab">
          #{not
          currentUserCenterView.properties.alwaysDisplaySubTabs}
        </property>
      </properties>
    </widget>

  </extension>

  <extension target="org.nuxeo.ecm.platform.forms.layout.LayoutStore"
    point="widgettypes">

    <widgetType name="home_rest_document_link">
      <categories>
        <category>jsfAction</category>
      </categories>
      <configuration>
        <sinceVersion>6.0</sinceVersion>
        <title>Document Home Rest Link</title>
        <description>
          Widget displaying a restful document link for an action
          (typically a tab link). Useful for Home tabs migration to tabs
          widget,
          to apply compatibility changes on existing actions.
        </description>
        <categories>
          <category>action</category>
        </categories>
        <supportedModes>
          <mode>view</mode>
        </supportedModes>
        <properties>
          <defaultValues mode="any">
            <property name="repositoryName">#{currentServerLocation.name}</property>
            <property name="discardSurroundingForm">true</property>
            <property name="disableMultiPartForm">true</property>
            <property name="supportAjax">#{canUseAjaxTabs}</property>
            <property name="view">view_home</property>
            <property name="pattern">home</property>
          </defaultValues>
        </properties>
      </configuration>
      <handler-class>
        org.nuxeo.ecm.platform.actions.facelets.ActionWidgetTypeHandler
      </handler-class>
      <property name="template">
        /incl/action/widgets/rest_document_link_action_template.xhtml
      </property>
      <property name="compat_template">
        /incl/action/rest_document_link_action_template.xhtml
      </property>
      <property name="dev_template">
        /widgets/actions/dev/action_widget_type_dev_template.xhtml
      </property>
    </widgetType>

  </extension>

  <extension target="org.nuxeo.ecm.platform.actions.ActionService"
    point="typeCompatibility">

    <typeCompatibility type="home_rest_document_link">
      <category>USER_CENTER</category>
      <category>UsersGroupsHome_sub_tab</category>
      <category>Dashboard_sub_tab</category>
      <category>MiniMessages_sub_tab</category>
      <category>Collections_sub_tab</category>
      <category>Certificate_sub_tab</category>
      <category>WorkflowHome_sub_tab</category>
      <category>ActivityStream_sub_tab</category>
      <category>AuthorizedApplication_sub_tab</category>
      <category>Profile_sub_tab</category>
      <category>Preferences_sub_tab</category>
      <category>relationship_network_sub_tab</category>
      <category>SavedSearches_sub_tab</category>
    </typeCompatibility>

  </extension>

</component>